package com.chuangke.metadata.entity;

import java.util.HashMap;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.TableField;
import com.chuangke.framework.model.LevelModel;

public class SysGridColumn extends LevelModel<SysGridColumn> {

	
    private static final long serialVersionUID = 1087803185999821181L;

	private String parentId;
	private String modelId;
	private String prop;
	private String label;
	private String align;
	private String width;
	private String fixed;
	private String formula;
	private String formatType;
	private String format;
	private String dictProperty;
	private int sort;
	private String delFlag;
	/** 是否显示 */
	private String isShow ;
	/** 是否必输 */
	private String isRequired ;
	/** 是否搜索条件 */
	private String isCondition ;
	/** 默认值 */
	private String defaultValue ;
	/** 帮助属性列表 */
	private String poperList;
	/** 条件是否多选 */
	private String multiple;
    /** 条件单选按钮组*/
	private String radioList;
	/** 是否超链接列*/
	private String isLinkColumn;
	/** 单据状态颜色*/
	private String maskColor;
	/** 列表最小宽度*/
	private String minWidth;
	/**条件宽度，默认280px*/
	private String conditionWidth;
	/**表单宽度*/
	private String formItemWidth;
	/*表单元素 编辑模式*/
	private String formEditType;
	/**是否表单编辑元素*/
	private String isFormItem;

	/**条件操作符*/
	private String conditionOperator;

	/**超链接参数json
	 *{url:"菜单路由/模型编号/表单编号",sourceKeys:["key1","key2"],targetKeys:["key1","key2"]}
	 * */
	private String linkParams;
	/*** 帮助参数：{sourceKeys:["key1","key2"],targetKeys:["key1","key2"]}*/
	private String helpParams;
	//前台显示参数
	@TableField(exist = false) private final Map<String,Object> params = new HashMap<>();

	public SysGridColumn() {
	}

    public SysGridColumn(String prop, String label, String align, String width, String fixed) {
		this.prop = prop;
		this.label = label;
		this.align = align;
		this.width = width;
		this.fixed = fixed;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getModelId() {
		return modelId;
	}

	public void setModelId(String modelId) {
		this.modelId = modelId;
	}

	public String getProp() {
		return prop;
	}

	public void setProp(String prop) {
		this.prop = prop;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getAlign() {
		return align;
	}

	public void setAlign(String align) {
		this.align = align;
	}

	public String getWidth() {
		return width;
	}

	public void setWidth(String width) {
		this.width = width;
	}

	public String getPoperList() {
		return poperList;
	}

	public void setPoperList(String poperList) {
		this.poperList = poperList;
	}

	public String getMultiple() {
		return multiple;
	}

	public void setMultiple(String multiple) {
		this.multiple = multiple;
	}

	public String getRadioList() {
		return radioList;
	}

	public void setRadioList(String radioList) {
		this.radioList = radioList;
	}

	public String getIsLinkColumn() {
		return isLinkColumn;
	}

	public void setIsLinkColumn(String isLinkColumn) {
		this.isLinkColumn = isLinkColumn;
	}

	public String getMaskColor() {
		return maskColor;
	}

	public void setMaskColor(String maskColor) {
		this.maskColor = maskColor;
	}

	public String getMinWidth() {
		return minWidth;
	}

	public void setMinWidth(String minWidth) {
		this.minWidth = minWidth;
	}

	public String getFixed() {
		return fixed;
	}

	public void setFixed(String fixed) {
		this.fixed = fixed;
	}

	public String getFormula() {
		return formula;
	}

	public void setFormula(String formula) {
		this.formula = formula;
	}

	public String getFormatType() {
		return formatType;
	}

	public void setFormatType(String formatType) {
		this.formatType = formatType;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public String getDictProperty() {
		return dictProperty;
	}

	public void setDictProperty(String dictProperty) {
		this.dictProperty = dictProperty;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}

	public String getIsRequired() {
		return isRequired;
	}

	public void setIsRequired(String isRequired) {
		this.isRequired = isRequired;
	}

	public String getIsCondition() {
		return isCondition;
	}

	public String getFormEditType() {
		return formEditType;
	}

	public void setFormEditType(String formEditType) {
		this.formEditType = formEditType;
	}

	public void setIsCondition(String isCondition) {
		this.isCondition = isCondition;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public void putParam(String key, Object value) {
		params.put(key, value);
	}

	public Map<String, Object> getParams() {
		return params;
	}

	public String getConditionWidth() {
		return conditionWidth;
	}

	public void setConditionWidth(String conditionWidth) {
		this.conditionWidth = conditionWidth;
	}

	public String getFormItemWidth() {
		return formItemWidth;
	}

	public void setFormItemWidth(String formItemWidth) {
		this.formItemWidth = formItemWidth;
	}

	public String getIsFormItem() {
		return isFormItem;
	}

	public void setIsFormItem(String isFormItem) {
		this.isFormItem = isFormItem;
	}

	public String getConditionOperator() {
		return conditionOperator;
	}

	public void setConditionOperator(String conditionOperator) {
		this.conditionOperator = conditionOperator;
	}

	public String getLinkParams() {
		return linkParams;
	}

	public void setLinkParams(String linkParams) {
		this.linkParams = linkParams;
	}

	public String getHelpParams() {
		return helpParams;
	}

	public void setHelpParams(String helpParams) {
		this.helpParams = helpParams;
	}
}
